import shutil,os
srcdir='F:/BaiduYunDownload/香帅北大金融学（更新中）/2018'
distdir='D:\\33\\xs\\2018'

def doWork():
   for parent,dirnames,filenames in os.walk(srcdir):
       for filename in filenames:
           if(filename.endswith("mp3")):
               print("filename is:" +parent+'\\'+ filename)
               filepath=parent+"\\"+filename
               shutil.copy(filepath,distdir)
doWork()